Navigation

Operators and Keywords

Function List:

C++ API

Octave_map Class Reference

#include <oct-map.h>

Collaboration diagram for Octave_map:

List of all members.


Public Types

typedef std::map< std::string,
Cell >::iterator 
iterator
typedef std::map< std::string,
Cell >::const_iterator 
const_iterator
typedef std::list< std::string >
::iterator 
key_list_iterator
typedef std::list< std::string >
::const_iterator 
const_key_list_iterator

Public Member Functions

 Octave_map (const dim_vector &dv=dim_vector(0, 0), const Cell &key_vals=Cell())
 Octave_map (const std::string &k, const octave_value &value)
 Octave_map (const string_vector &sv)
 Octave_map (const std::string &k, const Cell &vals)
 Octave_map (const std::string &k, const octave_value_list &val_list)
 Octave_map (const Octave_map &m)
Octave_mapoperator= (const Octave_map &m)
 ~Octave_map (void)
Octave_map squeeze (void) const
Octave_map permute (const Array< int > &vec, bool inv=false) const
octave_idx_type nfields (void) const
void del (const std::string &k)
iterator begin (void)
const_iterator begin (void) const
iterator end (void)
const_iterator end (void) const
std::string key (const_iterator p) const
Cellcontents (const std::string &k)
Cell contents (const std::string &k) const
Cellcontents (iterator p)
Cell contents (const_iterator p) const
int intfield (const std::string &k, int def_val=0) const
std::string stringfield (const std::string &k, const std::string &def_val=std::string()) const
iterator seek (const std::string &k)
const_iterator seek (const std::string &k) const
bool contains (const std::string &k) const
void clear (void)
string_vector keys (void) const
octave_idx_type rows (void) const
octave_idx_type columns (void) const
dim_vector dims (void) const
int ndims (void) const
Octave_map transpose (void) const
Octave_map reshape (const dim_vector &new_dims) const
void resize (const dim_vector &dv, bool fill=false)
octave_idx_type numel (void) const
Octave_map concat (const Octave_map &rb, const Array< octave_idx_type > &ra_idx)
Octave_mapmaybe_delete_elements (const octave_value_list &idx)
Octave_mapassign (const octave_value_list &idx, const Octave_map &rhs)
Octave_mapassign (const octave_value_list &idx, const std::string &k, const Cell &rhs)
Octave_mapassign (const std::string &k, const octave_value &rhs)
Octave_mapassign (const std::string &k, const Cell &rhs)
Octave_map index (const octave_value_list &idx, bool resize_ok=false) const

Member Typedef Documentation


Constructor & Destructor Documentation

Octave_map::Octave_map ( const dim_vector dv = dim_vector (0, 0),
const Cell key_vals = Cell () 
)

Octave_map::Octave_map ( const std::string k,
const octave_value value 
) [inline]

Octave_map::Octave_map ( const string_vector sv  )  [inline]

Octave_map::Octave_map ( const std::string k,
const Cell vals 
) [inline]

Octave_map::Octave_map ( const std::string k,
const octave_value_list val_list 
) [inline]

Octave_map::Octave_map ( const Octave_map m  )  [inline]

Octave_map::~Octave_map ( void   )  [inline]


Member Function Documentation

Octave_map & Octave_map::assign ( const std::string k,
const Cell rhs 
)

Octave_map & Octave_map::assign ( const std::string k,
const octave_value rhs 
)

Octave_map & Octave_map::assign ( const octave_value_list idx,
const std::string k,
const Cell rhs 
)

Octave_map & Octave_map::assign ( const octave_value_list idx,
const Octave_map rhs 
)

const_iterator Octave_map::begin ( void   )  const [inline]

iterator Octave_map::begin ( void   )  [inline]

void Octave_map::clear ( void   )  [inline]

octave_idx_type Octave_map::columns ( void   )  const [inline]

Octave_map Octave_map::concat ( const Octave_map rb,
const Array< octave_idx_type > &  ra_idx 
)

bool Octave_map::contains ( const std::string k  )  const [inline]

Cell Octave_map::contents ( const_iterator  p  )  const [inline]

Cell& Octave_map::contents ( iterator  p  )  [inline]

Cell Octave_map::contents ( const std::string k  )  const

Cell & Octave_map::contents ( const std::string k  ) 

void Octave_map::del ( const std::string k  )  [inline]

dim_vector Octave_map::dims ( void   )  const [inline]

const_iterator Octave_map::end ( void   )  const [inline]

iterator Octave_map::end ( void   )  [inline]

Octave_map Octave_map::index ( const octave_value_list idx,
bool  resize_ok = false 
) const

int Octave_map::intfield ( const std::string k,
int  def_val = 0 
) const

std::string Octave_map::key ( const_iterator  p  )  const [inline]

string_vector Octave_map::keys ( void   )  const

Octave_map & Octave_map::maybe_delete_elements ( const octave_value_list idx  ) 

int Octave_map::ndims ( void   )  const [inline]

octave_idx_type Octave_map::nfields ( void   )  const [inline]

octave_idx_type Octave_map::numel ( void   )  const [inline]

Octave_map& Octave_map::operator= ( const Octave_map m  )  [inline]

Octave_map Octave_map::permute ( const Array< int > &  vec,
bool  inv = false 
) const

Octave_map Octave_map::reshape ( const dim_vector new_dims  )  const

void Octave_map::resize ( const dim_vector dv,
bool  fill = false 
)

octave_idx_type Octave_map::rows ( void   )  const [inline]

const_iterator Octave_map::seek ( const std::string k  )  const [inline]

iterator Octave_map::seek ( const std::string k  )  [inline]

Octave_map Octave_map::squeeze ( void   )  const

std::string Octave_map::stringfield ( const std::string k,
const std::string def_val = std::string () 
) const

Octave_map Octave_map::transpose ( void   )  const


The documentation for this class was generated from the following files: