Boost C++ Libraries Home Libraries People FAQ More

PrevUpHomeNext

Class writer

boost::genetics::writer

Synopsis

// In header: <boost/genetics/utils.hpp>


class writer {
public:
  // member classes/structs/unions
  template<typename A, typename B> 
  struct exists {
    // types
    typedef B type;
  };
  // construct/copy/destruct
  writer(char *, char *);

  // public member functions
  char * get_ptr() const;
  bool is_end() const;
  template<typename Type> void write(const Type *, size_t, size_t);
  template<typename VecType> 
    void write(const VecType &, size_t = sizeof(typename VecType::value_type));
  void write(const std::string &);
  void write64(uint64_t);
};

Description

writer public construct/copy/destruct

  1. writer(char * begin, char * end);

writer public member functions

  1. char * get_ptr() const;
  2. bool is_end() const;
  3. template<typename Type> 
      void write(const Type * src, size_t size, size_t align);
  4. template<typename VecType> 
      void write(const VecType & vec, 
                 size_t align = sizeof(typename VecType::value_type));
  5. void write(const std::string & str);
  6. void write64(uint64_t value);

PrevUpHomeNext