Public Member Functions | Data Fields

Vec< C, A, S > Class Template Reference

#include <Vec.h>

Inherited by Map< ConnAddr, int, DefaultAlloc >, Map< uintptr_t, List< C, A >, A >, Map< uintptr_t, List< cchar *, A >, A >, and Map< uintptr_t, List< MapElem< K, C >, A >, A >.

Collaboration diagram for Vec< C, A, S >:
Collaboration graph
[legend]

Public Member Functions

 Vec ()
 Vec (const Vec< C, A, S > &vv)
 Vec (const C c)
 ~Vec ()
C & operator[] (int i) const
get (size_t i)
void add (C a)
void push_back (C a)
bool add_exclusive (C a)
C & add ()
pop ()
void reset ()
void clear ()
void free_and_clear ()
void delete_and_clear ()
void set_clear ()
C * set_add (C a)
void set_remove (C a)
C * set_add_internal (C a)
bool set_union (Vec< C, A, S > &v)
int set_intersection (Vec< C, A, S > &v)
int some_intersection (Vec< C, A, S > &v)
int some_disjunction (Vec< C, A, S > &v)
int some_difference (Vec< C, A, S > &v)
void set_intersection (Vec< C, A, S > &v, Vec< C, A, S > &result)
void set_disjunction (Vec< C, A, S > &v, Vec< C, A, S > &result)
void set_difference (Vec< C, A, S > &v, Vec< C, A, S > &result)
size_t set_count () const
size_t count () const
C * in (C a)
C * set_in (C a)
first_in_set ()
C * set_in_internal (C a)
void set_expand ()
ssize_t index (C a) const
void set_to_vec ()
void vec_to_set ()
void move (Vec< C, A, S > &v)
void copy (const Vec< C, A, S > &v)
void fill (size_t n)
void append (const Vec< C > &v)
template<typename CountType >
void append (const C *src, CountType count)
void prepend (const Vec< C > &v)
void remove_index (int index)
void remove (C a)
C & insert (size_t index)
void insert (size_t index, Vec< C > &vv)
void insert (size_t index, C a)
void push (C a)
void reverse ()
void reserve (size_t n)
C * end () const
C & first () const
C & last () const
Vec< C, A, S > & operator= (Vec< C, A, S > &v)
unsigned length () const
int write (int fd)
int read (int fd)
void qsort (bool(*lt)(C, C))

Data Fields

size_t n
size_t i
C * v
e [VEC_INTEGRAL_SIZE]

Detailed Description

template<class C, class A = DefaultAlloc, int S = VEC_INTEGRAL_SHIFT_DEFAULT>
class Vec< C, A, S >

Definition at line 45 of file Vec.h.


Constructor & Destructor Documentation

template<class C , class A , int S>
Vec< C, A, S >::Vec (  )  [inline]

Definition at line 167 of file Vec.h.

References Vec< C, A, S >::e.

template<class C, class A, int S>
Vec< C, A, S >::Vec ( const Vec< C, A, S > &  vv  )  [inline]

Definition at line 172 of file Vec.h.

References Vec< C, A, S >::copy().

template<class C, class A, int S>
Vec< C, A, S >::Vec ( const C  c  )  [inline]

Definition at line 177 of file Vec.h.

References Vec< C, A, S >::e, Vec< C, A, S >::i, Vec< C, A, S >::n, and Vec< C, A, S >::v.

template<class C , class A , int S>
Vec< C, A, S >::~Vec (  )  [inline]

Definition at line 698 of file Vec.h.

References Vec< C, A, S >::e, and Vec< C, A, S >::v.


Member Function Documentation

template<class C, class A , int S>
void Vec< C, A, S >::add ( a  )  [inline]
template<class C, class A , int S>
C & Vec< C, A, S >::add (  )  [inline]
template<class C, class A , int S>
bool Vec< C, A, S >::add_exclusive ( a  )  [inline]

Definition at line 276 of file Vec.h.

References Vec< C, A, S >::add(), and Vec< C, A, S >::in().

template<class C, class A , int S>
void Vec< C, A, S >::append ( const Vec< C > &  v  )  [inline]

Definition at line 349 of file Vec.h.

References Vec< C, A, S >::add(), Vec< C, A, S >::n, and Vec< C, A, S >::v.

template<class C, class A , int S>
template<typename CountType >
void Vec< C, A, S >::append ( const C *  src,
CountType  count 
) [inline]

Definition at line 358 of file Vec.h.

References Vec< C, A, S >::add(), Vec< C, A, S >::length(), and Vec< C, A, S >::reserve().

template<class C , class A , int S>
void Vec< C, A, S >::clear ( void   )  [inline]
template<class C, class A, int S>
void Vec< C, A, S >::copy ( const Vec< C, A, S > &  v  )  [inline]
template<class C , class A , int S>
size_t Vec< C, A, S >::count (  )  const [inline]

Definition at line 259 of file Vec.h.

References Vec< C, A, S >::n, and Vec< C, A, S >::v.

Referenced by SSLContextStorage::count(), and SSLContextStorage::~SSLContextStorage().

template<class C , class A , int S>
void Vec< C, A, S >::delete_and_clear (  )  [inline]

Definition at line 688 of file Vec.h.

References Vec< C, A, S >::clear(), and Vec< C, A, S >::v.

template<class C, class A = DefaultAlloc, int S = VEC_INTEGRAL_SHIFT_DEFAULT>
C* Vec< C, A, S >::end (  )  const [inline]

Definition at line 105 of file Vec.h.

Referenced by Vec< C, A, S >::qsort().

template<class C , class A , int S>
void Vec< C, A, S >::fill ( size_t  n  )  [inline]
template<class C, class A = DefaultAlloc, int S = VEC_INTEGRAL_SHIFT_DEFAULT>
C& Vec< C, A, S >::first (  )  const [inline]

Definition at line 106 of file Vec.h.

template<class C , class A , int S>
C Vec< C, A, S >::first_in_set (  )  [inline]

Definition at line 292 of file Vec.h.

References Vec< C, A, S >::n, and Vec< C, A, S >::v.

template<class C , class A , int S>
void Vec< C, A, S >::free_and_clear (  )  [inline]

Definition at line 680 of file Vec.h.

References Vec< C, A, S >::clear(), and Vec< C, A, S >::v.

template<class C , class A , int S>
C Vec< C, A, S >::get ( size_t  i  )  [inline]

Definition at line 185 of file Vec.h.

References Vec< C, A, S >::v.

template<class C, class A , int S>
C * Vec< C, A, S >::in ( a  )  [inline]
template<class C, class A , int S>
ssize_t Vec< C, A, S >::index ( a  )  const [inline]

Definition at line 300 of file Vec.h.

References Vec< C, A, S >::n, and Vec< C, A, S >::v.

Referenced by Vec< MapElem< ConnAddr, int >, DefaultAlloc >::remove().

template<class C , class A , int S>
C & Vec< C, A, S >::insert ( size_t  index  ) 
template<class C, class A , int S>
void Vec< C, A, S >::insert ( size_t  index,
Vec< C > &  vv 
)

Definition at line 572 of file Vec.h.

References Vec< C, A, S >::fill(), Vec< C, A, S >::n, and Vec< C, A, S >::v.

template<class C, class A , int S>
void Vec< C, A, S >::insert ( size_t  index,
a 
)

Definition at line 565 of file Vec.h.

References Vec< C, A, S >::add(), Vec< C, A, S >::n, and Vec< C, A, S >::v.

template<class C, class A = DefaultAlloc, int S = VEC_INTEGRAL_SHIFT_DEFAULT>
C& Vec< C, A, S >::last (  )  const [inline]
template<class C, class A = DefaultAlloc, int S = VEC_INTEGRAL_SHIFT_DEFAULT>
unsigned Vec< C, A, S >::length (  )  const [inline]
template<class C, class A, int S>
void Vec< C, A, S >::move ( Vec< C, A, S > &  v  )  [inline]
template<class C, class A = DefaultAlloc, int S = VEC_INTEGRAL_SHIFT_DEFAULT>
Vec<C,A,S>& Vec< C, A, S >::operator= ( Vec< C, A, S > &  v  )  [inline]

Definition at line 108 of file Vec.h.

template<class C, class A = DefaultAlloc, int S = VEC_INTEGRAL_SHIFT_DEFAULT>
C& Vec< C, A, S >::operator[] ( int  i  )  const [inline]

Definition at line 57 of file Vec.h.

template<class C , class A , int S>
C Vec< C, A, S >::pop (  )  [inline]

Definition at line 215 of file Vec.h.

References Vec< C, A, S >::clear(), Vec< C, A, S >::n, and Vec< C, A, S >::v.

template<class C, class A , int S>
void Vec< C, A, S >::prepend ( const Vec< C > &  v  )  [inline]

Definition at line 366 of file Vec.h.

References Vec< C, A, S >::fill(), memcpy, Vec< C, A, S >::n, and Vec< C, A, S >::v.

template<class C, class A = DefaultAlloc, int S = VEC_INTEGRAL_SHIFT_DEFAULT>
void Vec< C, A, S >::push ( a  )  [inline]

Definition at line 102 of file Vec.h.

template<class C, class A = DefaultAlloc, int S = VEC_INTEGRAL_SHIFT_DEFAULT>
void Vec< C, A, S >::push_back ( a  )  [inline]
template<class C, class A , int S>
void Vec< C, A, S >::qsort ( bool(*)(C, C)  lt  )  [inline]

Definition at line 826 of file Vec.h.

References Vec< C, A, S >::end(), and Vec< C, A, S >::v.

template<class C , class A , int S>
int Vec< C, A, S >::read ( int  fd  )  [inline]

Definition at line 744 of file Vec.h.

References Vec< C, A, S >::v.

template<class C, class A = DefaultAlloc, int S = VEC_INTEGRAL_SHIFT_DEFAULT>
void Vec< C, A, S >::remove ( a  )  [inline]

Definition at line 98 of file Vec.h.

Referenced by LogObjectManager::unmanage_api_object().

template<class C , class A , int S>
void Vec< C, A, S >::remove_index ( int  index  ) 
template<class C , class A , int S>
void Vec< C, A, S >::reserve ( size_t  n  )  [inline]
template<class C , class A , int S>
void Vec< C, A, S >::reset (  )  [inline]

Definition at line 667 of file Vec.h.

References Vec< C, A, S >::i, and Vec< C, A, S >::v.

Referenced by Vec< C, A, S >::clear().

template<class C , class A , int S>
void Vec< C, A, S >::reverse (  ) 

Definition at line 588 of file Vec.h.

References Vec< C, A, S >::e, Vec< C, A, S >::i, memcpy, Vec< C, A, S >::n, and Vec< C, A, S >::v.

template<class C, class A , int S>
C * Vec< C, A, S >::set_add ( a  )  [inline]
template<class C, class A , int S>
C * Vec< C, A, S >::set_add_internal ( a  ) 
template<class C , class A , int S>
void Vec< C, A, S >::set_clear (  )  [inline]

Definition at line 226 of file Vec.h.

References Vec< C, A, S >::n, and Vec< C, A, S >::v.

template<class C , class A , int S>
size_t Vec< C, A, S >::set_count (  )  const

Definition at line 516 of file Vec.h.

References Vec< C, A, S >::i, Vec< C, A, S >::n, and Vec< C, A, S >::v.

template<class C, class A, int S>
void Vec< C, A, S >::set_difference ( Vec< C, A, S > &  v,
Vec< C, A, S > &  result 
)
template<class C, class A, int S>
void Vec< C, A, S >::set_disjunction ( Vec< C, A, S > &  v,
Vec< C, A, S > &  result 
)
template<class C , class A , int S>
void Vec< C, A, S >::set_expand (  ) 
template<class C, class A , int S>
C * Vec< C, A, S >::set_in ( a  )  [inline]
template<class C, class A , int S>
C * Vec< C, A, S >::set_in_internal ( a  ) 

Definition at line 414 of file Vec.h.

References Vec< C, A, S >::i, Vec< C, A, S >::n, and Vec< C, A, S >::v.

Referenced by Vec< C, A, S >::set_in().

template<class C, class A, int S>
int Vec< C, A, S >::set_intersection ( Vec< C, A, S > &  v  ) 
template<class C, class A, int S>
void Vec< C, A, S >::set_intersection ( Vec< C, A, S > &  v,
Vec< C, A, S > &  result 
)
template<class C, class A , int S>
void Vec< C, A, S >::set_remove ( a  ) 
template<class C , class A , int S>
void Vec< C, A, S >::set_to_vec (  ) 
template<class C, class A, int S>
bool Vec< C, A, S >::set_union ( Vec< C, A, S > &  v  ) 
template<class C, class A, int S>
int Vec< C, A, S >::some_difference ( Vec< C, A, S > &  v  ) 
template<class C, class A, int S>
int Vec< C, A, S >::some_disjunction ( Vec< C, A, S > &  v  ) 
template<class C, class A, int S>
int Vec< C, A, S >::some_intersection ( Vec< C, A, S > &  v  ) 
template<class C , class A , int S>
void Vec< C, A, S >::vec_to_set (  ) 
template<class C , class A , int S>
int Vec< C, A, S >::write ( int  fd  )  [inline]

Definition at line 736 of file Vec.h.

References Vec< C, A, S >::v.


Field Documentation

template<class C, class A = DefaultAlloc, int S = VEC_INTEGRAL_SHIFT_DEFAULT>
C Vec< C, A, S >::e[VEC_INTEGRAL_SIZE]
template<class C, class A = DefaultAlloc, int S = VEC_INTEGRAL_SHIFT_DEFAULT>
size_t Vec< C, A, S >::i
template<class C, class A = DefaultAlloc, int S = VEC_INTEGRAL_SHIFT_DEFAULT>
size_t Vec< C, A, S >::n

Definition at line 47 of file Vec.h.

Referenced by Vec< C, A, S >::add(), Accum< C, A, S >::add(), Vec< C, A, S >::append(), TSHashTable< HostHashing >::bucketCount(), TSHashTable< H >::clear(), Vec< C, A, S >::copy(), Vec< C, A, S >::count(), Vec< MapElem< ConnAddr, int >, DefaultAlloc >::end(), TSHashTable< H >::expand(), Vec< C, A, S >::fill(), TSHashTable< H >::findBucket(), Vec< C, A, S >::first_in_set(), ChainHashMap< K, AHashFns, C, A >::get_bag(), ChainHash< C, AHashFns, A >::get_bag(), ChainHash< C, AHashFns, A >::get_elements(), ChainHashMap< K, AHashFns, C, A >::get_keys(), ChainHashMap< K, AHashFns, C, A >::get_values(), i_find(), Vec< C, A, S >::in(), Vec< C, A, S >::index(), Vec< C, A, S >::insert(), TSHashTable< H >::insert(), Vec< MapElem< ConnAddr, int >, DefaultAlloc >::last(), Vec< MapElem< ConnAddr, int >, DefaultAlloc >::length(), marshal(), marshal_size(), Vec< C, A, S >::pop(), Vec< C, A, S >::prepend(), Vec< C, A, S >::remove_index(), Vec< C, A, S >::reserve(), Vec< C, A, S >::reverse(), Vec< C, A, S >::set_add(), Vec< C, A, S >::set_add_internal(), Vec< C, A, S >::set_clear(), Vec< C, A, S >::set_count(), Vec< C, A, S >::set_difference(), Vec< C, A, S >::set_disjunction(), Vec< C, A, S >::set_expand(), Vec< C, A, S >::set_in(), Vec< C, A, S >::set_in_internal(), Vec< C, A, S >::set_intersection(), Vec< C, A, S >::set_remove(), Vec< C, A, S >::set_to_vec(), Vec< C, A, S >::set_union(), Vec< C, A, S >::some_difference(), Vec< C, A, S >::some_disjunction(), Vec< C, A, S >::some_intersection(), TSHashTable< H >::TSHashTable(), unmarshal(), Vec< C, A, S >::Vec(), and Vec< C, A, S >::vec_to_set().

template<class C, class A = DefaultAlloc, int S = VEC_INTEGRAL_SHIFT_DEFAULT>
C* Vec< C, A, S >::v

Definition at line 49 of file Vec.h.

Referenced by Vec< C, A, S >::add(), Accum< C, A, S >::add(), Vec< C, A, S >::append(), Vec< C, A, S >::clear(), Vec< C, A, S >::copy(), Vec< C, A, S >::count(), Vec< C, A, S >::delete_and_clear(), Vec< MapElem< ConnAddr, int >, DefaultAlloc >::end(), Vec< MapElem< ConnAddr, int >, DefaultAlloc >::first(), Vec< C, A, S >::first_in_set(), Vec< C, A, S >::free_and_clear(), Vec< C, A, S >::get(), ChainHash< C, AHashFns, A >::get_elements(), ChainHashMap< K, AHashFns, C, A >::get_keys(), ChainHashMap< K, AHashFns, C, A >::get_values(), i_find(), Vec< C, A, S >::in(), Vec< C, A, S >::index(), Vec< C, A, S >::insert(), Vec< MapElem< ConnAddr, int >, DefaultAlloc >::last(), marshal(), marshal_size(), Vec< C, A, S >::move(), Vec< MapElem< ConnAddr, int >, DefaultAlloc >::operator[](), Vec< C, A, S >::pop(), Vec< C, A, S >::prepend(), Vec< C, A, S >::qsort(), Vec< C, A, S >::read(), Vec< C, A, S >::remove_index(), Vec< C, A, S >::reserve(), Vec< C, A, S >::reset(), Vec< C, A, S >::reverse(), Vec< C, A, S >::set_add(), Vec< C, A, S >::set_add_internal(), Vec< C, A, S >::set_clear(), Vec< C, A, S >::set_count(), Vec< C, A, S >::set_difference(), Vec< C, A, S >::set_disjunction(), Vec< C, A, S >::set_expand(), Vec< C, A, S >::set_in_internal(), Vec< C, A, S >::set_intersection(), Vec< C, A, S >::set_remove(), Vec< C, A, S >::set_to_vec(), Vec< C, A, S >::set_union(), Vec< C, A, S >::some_difference(), Vec< C, A, S >::some_disjunction(), Vec< C, A, S >::some_intersection(), unmarshal(), Vec< C, A, S >::Vec(), Vec< C, A, S >::vec_to_set(), Vec< C, A, S >::write(), and Vec< C, A, S >::~Vec().


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