cvec_t Class Reference

Inherits VEC_t.

Inherited by vec_t.

Inheritance diagram for cvec_t:

Inheritance graph
[legend]
Collaboration diagram for cvec_t:

Collaboration graph
[legend]
List of all members.

Detailed Description

A constant vec_t (meaning things pointed to cannot be changed).

Definition at line 97 of file vec_t.h.

Public Types

enum  dummy_enumid

Public Member Functions

 cvec_t ()
 cvec_t (const cvec_t &v1, const cvec_t &v2)
 cvec_t (const void *p, size_t l)
 cvec_t (const cvec_t &v, size_t offset, size_t limit)
cvec_tput (const cvec_t &v, size_t offset, size_t nbytes)
cvec_tput (const void *p, size_t l)
 append { p, l } pair to this vector.
cvec_tput (const cvec_t &v)
 append { p, l } pairs from v to this vector.
cvec_treset ()
 Clear this vector.
cvec_tset (const cvec_t &v1, const cvec_t &v2)
 reset, then copy over all {p,l} pairs from v1 and v2
cvec_tset (const cvec_t &v)
 reset, then copy over all {p,l} pairs from v
cvec_tset (const void *p, size_t l)
 reset, then install {p,l} pair
cvec_tset (const cvec_t &v, size_t offset, size_t limit)
size_t size () const
 returns # bytes this vector references
size_t copy_to (void *p, size_t limit=0x7fffffff) const
 Write from vector to p, no more than limit bytes.
int count () const
 return number of {p,l} pairs
void init ()
void vecdelparts ()
void delparts ()
bool is_pos_inf () const
bool is_neg_inf () const
bool is_null () const
bool is_zvec () const

Static Public Member Functions

static int cmp (const cvec_t &v1, const cvec_t &v2, size_t *common_size=0)

Static Public Attributes

static cvec_t pos_inf
static cvec_t neg_inf

Static Protected Attributes

static CADDR_T zero_location

Friends

bool operator< (const cvec_t &v1, const cvec_t &v2)
bool operator<= (const cvec_t &v1, const cvec_t &v2)
bool operator>= (const cvec_t &v1, const cvec_t &v2)
bool operator> (const cvec_t &v1, const cvec_t &v2)
bool operator== (const cvec_t &v1, const cvec_t &v2)
bool operator!= (const cvec_t &v1, const cvec_t &v2)


Member Function Documentation

cvec_t& cvec_t::put ( const cvec_t v,
size_t  offset,
size_t  nbytes 
)

append {p,l} pairs from vector v, (first ptr is v + offset), as needed to append at most nbytes

Referenced by zvec_t::put(), and set().

Here is the caller graph for this function:

cvec_t& cvec_t::set ( const cvec_t v,
size_t  offset,
size_t  limit 
) [inline]

reset, then install {p,l} pairs as needed to capture limit bytes starting at v + offset

Definition at line 154 of file vec_t.h.

References put(), and reset().

Here is the call graph for this function:


The documentation for this class was generated from the following file:
Generated on Wed Jul 7 17:22:43 2010 for Shore Storage Manager by  doxygen 1.4.7