Public Types | Public Member Functions | Private Attributes | Friends

octave_scalar_map Class Reference

#include "oct-map.h"

Collaboration diagram for octave_scalar_map:
Collaboration graph
[legend]

List of all members.

Public Types

typedef
octave_fields::const_iterator 
const_iterator
typedef const_iterator iterator

Public Member Functions

 octave_scalar_map (const octave_fields &k)
 octave_scalar_map (void)
 octave_scalar_map (const octave_scalar_map &m)
 octave_scalar_map (const string_vector &k)
void assign (const std::string &k, const octave_value &val)
const_iterator begin (void) const
void clear (void)
bool contains (const std::string &name) const
octave_valuecontents (const std::string &k)
const octave_valuecontents (const_iterator p) const
octave_valuecontents (iterator p)
const octave_valuecontents (octave_idx_type i) const
octave_value contents (const std::string &k) const
octave_valuecontents (octave_idx_type i)
void del (const std::string &k)
const_iterator end (void) const
string_vector fieldnames (void) const
octave_value getfield (const std::string &key) const
octave_idx_type index (const_iterator p) const
bool isfield (const std::string &name) const
std::string key (const_iterator p) const
string_vector keys (void) const
octave_idx_type nfields (void) const
octave_scalar_mapoperator= (const octave_scalar_map &m)
octave_scalar_map orderfields (void) const
octave_scalar_map orderfields (Array< octave_idx_type > &perm) const
octave_scalar_map orderfields (const octave_scalar_map &other, Array< octave_idx_type > &perm) const
void rmfield (const std::string &key)
const_iterator seek (const std::string &k) const
void setfield (const std::string &key, const octave_value &val)

Private Attributes

octave_fields xkeys
std::vector< octave_valuexvals

Friends

class octave_map

Detailed Description

Definition at line 153 of file oct-map.h.


Member Typedef Documentation

Definition at line 179 of file oct-map.h.

Definition at line 180 of file oct-map.h.


Constructor & Destructor Documentation

octave_scalar_map::octave_scalar_map ( const octave_fields k  )  [inline]

Definition at line 158 of file oct-map.h.

octave_scalar_map::octave_scalar_map ( void   )  [inline]

Definition at line 161 of file oct-map.h.

octave_scalar_map::octave_scalar_map ( const string_vector k  )  [inline]

Definition at line 163 of file oct-map.h.

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

Definition at line 166 of file oct-map.h.


Member Function Documentation

void octave_scalar_map::assign ( const std::string &  k,
const octave_value val 
) [inline]
const_iterator octave_scalar_map::begin ( void   )  const [inline]

Definition at line 182 of file oct-map.h.

Referenced by octave_scalar_struct::byte_size(), and save_fields().

void octave_scalar_map::clear ( void   )  [inline]

Definition at line 242 of file oct-map.h.

bool octave_scalar_map::contains ( const std::string &  name  )  const [inline]

Definition at line 211 of file oct-map.h.

Referenced by DEFUN().

octave_value& octave_scalar_map::contents ( iterator  p  )  [inline]

Definition at line 195 of file oct-map.h.

const octave_value& octave_scalar_map::contents ( octave_idx_type  i  )  const [inline]

Definition at line 198 of file oct-map.h.

octave_value& octave_scalar_map::contents ( octave_idx_type  i  )  [inline]

Definition at line 201 of file oct-map.h.

octave_value & octave_scalar_map::contents ( const std::string &  k  ) 

Definition at line 234 of file oct-map.cc.

References octave_fields::getfield(), xkeys, and xvals.

octave_value octave_scalar_map::contents ( const std::string &  k  )  const

Definition at line 228 of file oct-map.cc.

References getfield().

const octave_value& octave_scalar_map::contents ( const_iterator  p  )  const [inline]
void octave_scalar_map::del ( const std::string &  k  )  [inline]

Definition at line 230 of file oct-map.h.

const_iterator octave_scalar_map::end ( void   )  const [inline]
string_vector octave_scalar_map::fieldnames ( void   )  const [inline]

Definition at line 214 of file oct-map.h.

Referenced by octave_scalar_struct::print_raw().

octave_value octave_scalar_map::getfield ( const std::string &  key  )  const
octave_idx_type octave_scalar_map::index ( const_iterator  p  )  const [inline]

Definition at line 189 of file oct-map.h.

bool octave_scalar_map::isfield ( const std::string &  name  )  const [inline]

Definition at line 208 of file oct-map.h.

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

Definition at line 187 of file oct-map.h.

Referenced by octave_scalar_struct::byte_size(), and save_fields().

string_vector octave_scalar_map::keys ( void   )  const [inline]

Definition at line 217 of file oct-map.h.

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

Definition at line 205 of file oct-map.h.

Referenced by octave_map::cat(), DEFUN(), do_load(), octave_map::octave_map(), and orderfields().

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

Definition at line 169 of file oct-map.h.

References xkeys, and xvals.

octave_scalar_map octave_scalar_map::orderfields ( const octave_scalar_map other,
Array< octave_idx_type > &  perm 
) const
octave_scalar_map octave_scalar_map::orderfields ( void   )  const

Definition at line 186 of file oct-map.cc.

Referenced by permute_to_correct_order1().

octave_scalar_map octave_scalar_map::orderfields ( Array< octave_idx_type > &  perm  )  const

Definition at line 193 of file oct-map.cc.

References nfields(), octave_fields::orderfields(), Array< T >::xelem(), xkeys, and xvals.

void octave_scalar_map::rmfield ( const std::string &  key  ) 

Definition at line 178 of file oct-map.cc.

References octave_fields::rmfield(), xkeys, and xvals.

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

Definition at line 185 of file oct-map.h.

Referenced by octave_scalar_struct::subsasgn().

void octave_scalar_map::setfield ( const std::string &  key,
const octave_value val 
)

Friends And Related Function Documentation

friend class octave_map [friend]

Definition at line 248 of file oct-map.h.


Member Data Documentation

std::vector<octave_value> octave_scalar_map::xvals [private]

The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines