C++ SDK Documentation  12.0.0
Vertica::SimpleArchiveOut Struct Reference
Collaboration diagram for Vertica::SimpleArchiveOut:
Collaboration graph

Public Types

typedef std::false_type is_loading
 
typedef std::true_type is_saving
 

Public Member Functions

 SimpleArchiveOut (std::ostream &ostream)
 
void operator& (const int64 &val)
 
void operator& (const uint64 &val)
 
void operator& (const long int &val)
 
void operator& (const long unsigned int &val)
 
void operator& (const int32 &val)
 
void operator& (const uint32 &val)
 
void operator& (const int16 &val)
 
void operator& (const uint16 &val)
 
void operator& (const signed char &val)
 
void operator& (const char &val)
 
void operator& (const unsigned char &val)
 
void operator& (const bool &val)
 
void operator& (const double &val)
 
template<class Alloc >
void operator& (const std::basic_string< char, std::char_traits< char >, Alloc > &val)
 
template<class T , class Alloc >
void operator& (const std::vector< T, Alloc > &val)
 
template<class Alloc >
void operator& (const std::vector< bool, Alloc > &val)
 
template<class T , class Alloc >
void operator& (const std::list< T, Alloc > &val)
 
template<class T , class Less , class Alloc >
void operator& (const std::set< T, Less, Alloc > &val)
 
template<class T , class Hash , class Eq , class Alloc >
void operator& (const std::unordered_set< T, Hash, Eq, Alloc > &val)
 
template<class T1 , class T2 >
void operator& (const std::pair< T1, T2 > &val)
 
template<class K , class V , class Less , class Alloc >
void operator& (const std::map< K, V, Less, Alloc > &val)
 
template<class K , class V , class Hash , class Eq , class Alloc >
void operator& (const std::unordered_map< K, V, Hash, Eq, Alloc > &val)
 
template<class T >
void operator& (const T &val)
 
SimpleArchiveOutoperator<< (int64 val)
 
SimpleArchiveOutoperator<< (uint64 val)
 
SimpleArchiveOutoperator<< (int32 val)
 
SimpleArchiveOutoperator<< (uint32 val)
 
SimpleArchiveOutoperator<< (int16 val)
 
SimpleArchiveOutoperator<< (uint16 val)
 
SimpleArchiveOutoperator<< (signed char val)
 
SimpleArchiveOutoperator<< (char val)
 
SimpleArchiveOutoperator<< (unsigned char val)
 
SimpleArchiveOutoperator<< (bool b)
 
SimpleArchiveOutoperator<< (double d)
 
template<class Alloc >
SimpleArchiveOutoperator<< (const std::basic_string< char, std::char_traits< char >, Alloc > &val)
 
template<class T , class Alloc >
SimpleArchiveOutoperator<< (const std::vector< T, Alloc > &val)
 
template<class Alloc >
SimpleArchiveOutoperator<< (const std::vector< bool, Alloc > &val)
 
template<class T , class Alloc >
SimpleArchiveOutoperator<< (const std::list< T, Alloc > &val)
 
template<class T , class Less , class Alloc >
SimpleArchiveOutoperator<< (const std::set< T, Less, Alloc > &val)
 
template<class T , class Hash , class Eq , class Alloc >
SimpleArchiveOutoperator<< (const std::unordered_set< T, Hash, Eq, Alloc > &val)
 
template<class T1 , class T2 >
SimpleArchiveOutoperator<< (const std::pair< T1, T2 > &val)
 
template<class K , class V , class Less , class Alloc >
SimpleArchiveOutoperator<< (const std::map< K, V, Less, Alloc > &val)
 
template<class K , class V , class Hash , class Eq , class Alloc >
SimpleArchiveOutoperator<< (const std::unordered_map< K, V, Hash, Eq, Alloc > &val)
 
template<class T >
SimpleArchiveOutoperator<< (const T &val)
 
template<typename T , size_t n>
SimpleArchiveOutoperator<< (const T(&val)[n])
 
template<typename T >
SimpleArchiveOutoperator>> (T &val)
 
void read (void *ptr, size_t n)
 
void write (const void *ptr, size_t n)
 
void writeBool (bool b)
 
void writeDouble (double d)
 
void writeInt (int64 val)
 
void writeUint (uint64 val)
 

Static Public Member Functions

static uint32 serializeSigned (vint val, uint8 *buffer)
 

Public Attributes

std::ostream & os
 

Detailed Description

OutputArchive

Member Function Documentation

SimpleArchiveOut& Vertica::SimpleArchiveOut::operator<< ( int64  val)
inline

Write out a signed integer

SimpleArchiveOut& Vertica::SimpleArchiveOut::operator<< ( uint64  val)
inline

Write out an unsigned integer

SimpleArchiveOut& Vertica::SimpleArchiveOut::operator<< ( int32  val)
inline

Write out a signed integer

SimpleArchiveOut& Vertica::SimpleArchiveOut::operator<< ( uint32  val)
inline

Write out an unsigned integer

SimpleArchiveOut& Vertica::SimpleArchiveOut::operator<< ( int16  val)
inline

Write out a signed integer

SimpleArchiveOut& Vertica::SimpleArchiveOut::operator<< ( uint16  val)
inline

Write out an unsigned integer

SimpleArchiveOut& Vertica::SimpleArchiveOut::operator<< ( signed char  val)
inline

Write out a signed char / integer

SimpleArchiveOut& Vertica::SimpleArchiveOut::operator<< ( char  val)
inline

Write out a char

SimpleArchiveOut& Vertica::SimpleArchiveOut::operator<< ( unsigned char  val)
inline

Write out an unsigned char / integer

SimpleArchiveOut& Vertica::SimpleArchiveOut::operator<< ( bool  b)
inline

Write out a boolean

SimpleArchiveOut& Vertica::SimpleArchiveOut::operator<< ( double  d)
inline

Write out a double / float

template<class Alloc >
SimpleArchiveOut& Vertica::SimpleArchiveOut::operator<< ( const std::basic_string< char, std::char_traits< char >, Alloc > &  val)
inline

Write out a string

template<class T , class Alloc >
SimpleArchiveOut& Vertica::SimpleArchiveOut::operator<< ( const std::vector< T, Alloc > &  val)
inline

Write out a vector

template<class Alloc >
SimpleArchiveOut& Vertica::SimpleArchiveOut::operator<< ( const std::vector< bool, Alloc > &  val)
inline

Write out a vector<bool>

template<class T , class Alloc >
SimpleArchiveOut& Vertica::SimpleArchiveOut::operator<< ( const std::list< T, Alloc > &  val)
inline

Write out a list

template<class T , class Less , class Alloc >
SimpleArchiveOut& Vertica::SimpleArchiveOut::operator<< ( const std::set< T, Less, Alloc > &  val)
inline

Write out a set

template<class T , class Hash , class Eq , class Alloc >
SimpleArchiveOut& Vertica::SimpleArchiveOut::operator<< ( const std::unordered_set< T, Hash, Eq, Alloc > &  val)
inline

Write out an unordered set

template<class T1 , class T2 >
SimpleArchiveOut& Vertica::SimpleArchiveOut::operator<< ( const std::pair< T1, T2 > &  val)
inline

Write a pair

template<class K , class V , class Less , class Alloc >
SimpleArchiveOut& Vertica::SimpleArchiveOut::operator<< ( const std::map< K, V, Less, Alloc > &  val)
inline

Write out a map

template<class K , class V , class Hash , class Eq , class Alloc >
SimpleArchiveOut& Vertica::SimpleArchiveOut::operator<< ( const std::unordered_map< K, V, Hash, Eq, Alloc > &  val)
inline

Write out an unordered map

template<class T >
SimpleArchiveOut& Vertica::SimpleArchiveOut::operator<< ( const T &  val)
inline

Write out something with a serialize method, the default thing to do with no specific override

template<typename T , size_t n>
SimpleArchiveOut& Vertica::SimpleArchiveOut::operator<< ( const T(&)  val[n])
inline

Fixed array

static uint32 Vertica::SimpleArchiveOut::serializeSigned ( vint  val,
uint8 buffer 
)
inlinestatic

Returns # of bytes written to buffer. Assumes at least 10 bytes are available in buffer prior to write