Rosetta  2020.37
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Functions
core::io::serialization Namespace Reference

Classes

struct  BUFFER
 

Functions

bool is_pseudoresidue (const conformation::Residue &residue)
 
static void swap_bytes (char *, unsigned int)
 
void write_bytes (char *x, unsigned int n, BUFFER &buf)
 Helper functions to read/write raw memory. More...
 
void read_bytes (char *x, unsigned int n, BUFFER &buf)
 
template<typename T >
static void write_bytes (T x, BUFFER &buf)
 Helper functions to read/write any single primitive type. More...
 
template<typename T >
static void read_bytes (T &x, BUFFER &buf)
 
void write_binary (char x, BUFFER &buf)
 Read/write a single primitive type to a buf. More...
 
void read_binary (char &x, BUFFER &buf)
 
void write_binary (bool x, BUFFER &buf)
 
void read_binary (bool &x, BUFFER &buf)
 
void write_binary (unsigned int x, BUFFER &buf)
 
void read_binary (unsigned int &x, BUFFER &buf)
 
void write_binary (float x, BUFFER &buf)
 
void read_binary (float &x, BUFFER &buf)
 
void write_binary (double x, BUFFER &buf)
 
void read_binary (double &x, BUFFER &buf)
 
void write_binary (const utility::vector1_bool &x, BUFFER &buf)
 Read/write simple structure to a buf. More...
 
void read_binary (utility::vector1_bool &x, BUFFER &buf)
 
void write_binary (const std::vector< std::string > &x, BUFFER &buf)
 
void read_binary (std::vector< std::string > &x, BUFFER &buf)
 
void write_binary (const std::string &x, BUFFER &buf)
 
void read_binary (std::string &x, BUFFER &buf)
 
void write_binary (const core::Vector &x, BUFFER &buf)
 
void read_binary (core::Vector &x, BUFFER &buf)
 
void check_binary_unsigned_int (unsigned int x, BUFFER &buf)
 Utility read/write. More...
 
void write_binary_chars (const char *x, BUFFER &buf)
 
void check_binary_chars (const char *x, BUFFER &buf)
 
void write_binary (const core::pose::Pose &pose, BUFFER &buf)
 Read/Write a pose to a file. More...
 
void read_binary (core::pose::Pose &pose, BUFFER &buf)
 

Function Documentation

void core::io::serialization::check_binary_chars ( const char *  x,
BUFFER &  buf 
)

References read_binary(), and THROW_EXCEPTION.

Referenced by read_binary().

void core::io::serialization::check_binary_unsigned_int ( unsigned int  x,
BUFFER &  buf 
)

Utility read/write.

References read_binary(), and THROW_EXCEPTION.

Referenced by read_binary().

bool core::io::serialization::is_pseudoresidue ( const conformation::Residue &  residue)
void core::io::serialization::read_binary ( char &  x,
BUFFER &  buf 
)
void core::io::serialization::read_binary ( bool x,
BUFFER &  buf 
)

References read_bytes().

void core::io::serialization::read_binary ( unsigned int &  x,
BUFFER &  buf 
)

References read_bytes().

void core::io::serialization::read_binary ( float &  x,
BUFFER &  buf 
)

References read_bytes().

void core::io::serialization::read_binary ( double &  x,
BUFFER &  buf 
)

References read_bytes().

void core::io::serialization::read_binary ( utility::vector1_bool &  x,
BUFFER &  buf 
)

References read_binary().

void core::io::serialization::read_binary ( std::vector< std::string > &  x,
BUFFER &  buf 
)

References read_binary().

void core::io::serialization::read_binary ( std::string &  x,
BUFFER &  buf 
)

References read_binary().

void core::io::serialization::read_binary ( core::Vector x,
BUFFER &  buf 
)

References read_binary().

void core::io::serialization::read_binary ( core::pose::Pose pose,
BUFFER &  buf 
)
void core::io::serialization::read_bytes ( char *  x,
unsigned int  n,
BUFFER &  buf 
)
template<typename T >
static void core::io::serialization::read_bytes ( T &  x,
BUFFER &  buf 
)
static

References read_bytes().

static void core::io::serialization::swap_bytes ( char *  ,
unsigned  int 
)
static

Helper function to write all binary files as little endian. If the current architecture is big endian, swap the bytes.

Referenced by read_bytes(), and write_bytes().

void core::io::serialization::write_binary ( char  x,
BUFFER &  buf 
)

Read/write a single primitive type to a buf.

Referenced by write_binary(), and write_binary_chars().

void core::io::serialization::write_binary ( bool  x,
BUFFER &  buf 
)

References write_bytes().

void core::io::serialization::write_binary ( unsigned int  x,
BUFFER &  buf 
)

References write_bytes().

void core::io::serialization::write_binary ( float  x,
BUFFER &  buf 
)

References write_bytes().

void core::io::serialization::write_binary ( double  x,
BUFFER &  buf 
)

References write_bytes().

void core::io::serialization::write_binary ( const utility::vector1_bool &  x,
BUFFER &  buf 
)

Read/write simple structure to a buf.

Read/write simple structure to a file.

References write_binary().

void core::io::serialization::write_binary ( const std::vector< std::string > &  x,
BUFFER &  buf 
)

References write_binary().

void core::io::serialization::write_binary ( const std::string &  x,
BUFFER &  buf 
)

References write_binary().

void core::io::serialization::write_binary ( const core::Vector x,
BUFFER &  buf 
)

References write_binary().

void core::io::serialization::write_binary ( const core::pose::Pose pose,
BUFFER &  buf 
)
void core::io::serialization::write_binary_chars ( const char *  x,
BUFFER &  buf 
)

References write_binary().

Referenced by write_binary().

void core::io::serialization::write_bytes ( char *  x,
unsigned int  n,
BUFFER &  buf 
)

Helper functions to read/write raw memory.

References swap_bytes(), THROW_EXCEPTION, and core::io::serialization::BUFFER::write().

Referenced by write_binary(), and write_bytes().

template<typename T >
static void core::io::serialization::write_bytes ( x,
BUFFER &  buf 
)
static

Helper functions to read/write any single primitive type.

References write_bytes().