GNU Octave  3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Public Types | Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
octave_fields Class Reference

#include "oct-map.h"

Collaboration diagram for octave_fields:
Collaboration graph
[legend]

Classes

class  fields_rep

Public Types

typedef std::map< std::string,
octave_idx_type >
::const_iterator 
const_iterator
typedef const_iterator iterator

Public Member Functions

 octave_fields (void)
 octave_fields (const string_vector &)
 octave_fields (const char *const *)
 octave_fields (const octave_fields &o)
 ~octave_fields (void)
const_iterator begin (void) const
void clear (void)
const_iterator end (void) const
bool equal_up_to_order (const octave_fields &other, octave_idx_type *perm) const
bool equal_up_to_order (const octave_fields &other, Array< octave_idx_type > &perm) const
string_vector fieldnames (void) const
octave_idx_type getfield (const std::string &name) const
octave_idx_type getfield (const std::string &name)
octave_idx_type index (const_iterator p) const
bool is_same (const octave_fields &other) const
bool isfield (const std::string &name) const
std::string key (const_iterator p) const
void make_unique (void)
octave_idx_type nfields (void) const
octave_fieldsoperator= (const octave_fields &o)
void orderfields (Array< octave_idx_type > &perm)
octave_idx_type rmfield (const std::string &name)
const_iterator seek (const std::string &k) const

Static Private Member Functions

static fields_repnil_rep (void)

Private Attributes

fields_reprep

Detailed Description

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

Member Typedef Documentation

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

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

Constructor & Destructor Documentation

octave_fields::octave_fields ( void  )
inline

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

octave_fields::octave_fields ( const string_vector fields)

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

References Array< T >::numel(), and rep.

octave_fields::octave_fields ( const char *const *  fields)

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

octave_fields::~octave_fields ( void  )
inline

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

octave_fields::octave_fields ( const octave_fields o)
inline

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

Member Function Documentation

const_iterator octave_fields::begin ( void  ) const
inline

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

Referenced by equal_up_to_order(), and fieldnames().

void octave_fields::clear ( void  )
inline

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

const_iterator octave_fields::end ( void  ) const
inline

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

Referenced by equal_up_to_order(), and fieldnames().

bool octave_fields::equal_up_to_order ( const octave_fields other,
octave_idx_type perm 
) const
bool octave_fields::equal_up_to_order ( const octave_fields other,
Array< octave_idx_type > &  perm 
) const
string_vector octave_fields::fieldnames ( void  ) const

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

References begin(), end(), nfields(), and Array< T >::xelem().

octave_idx_type octave_fields::getfield ( const std::string &  name) const
octave_idx_type octave_fields::getfield ( const std::string &  name)

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

References make_unique(), and rep.

octave_idx_type octave_fields::index ( const_iterator  p) const
inline

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

bool octave_fields::is_same ( const octave_fields other) const
inline
bool octave_fields::isfield ( const std::string &  name) const

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

References rep.

std::string octave_fields::key ( const_iterator  p) const
inline

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

void octave_fields::make_unique ( void  )
inline

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

Referenced by getfield(), orderfields(), and rmfield().

octave_idx_type octave_fields::nfields ( void  ) const
inline

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

Referenced by equal_up_to_order(), and fieldnames().

static fields_rep* octave_fields::nil_rep ( void  )
inlinestaticprivate

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

octave_fields& octave_fields::operator= ( const octave_fields o)
inline

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

References octave_fields::fields_rep::count, and rep.

void octave_fields::orderfields ( Array< octave_idx_type > &  perm)

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

References Array< T >::clear(), make_unique(), and rep.

Referenced by octave_scalar_map::orderfields(), and octave_map::orderfields().

octave_idx_type octave_fields::rmfield ( const std::string &  name)

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

References make_unique(), and rep.

Referenced by octave_scalar_map::rmfield(), and octave_map::rmfield().

const_iterator octave_fields::seek ( const std::string &  k) const
inline

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

Member Data Documentation

fields_rep* octave_fields::rep
private

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

Referenced by getfield(), is_same(), isfield(), octave_fields(), operator=(), orderfields(), and rmfield().


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