Namespaces | Data Structures | Typedefs | Functions | Variables

ts Namespace Reference

Apache Traffic Server commons. More...

Namespaces

namespace  config
namespace  detail
namespace  msg

Data Structures

struct  Buffer
 A chunk of writable memory. More...
struct  ConstBuffer
 A chunk of read only memory. More...
class  Errata
 Class to hold a stack of error messages (the "errata"). More...
struct  RvBase
 Helper class for Rv. More...
struct  Rv
 Return type for returning a value and status (errata). More...
class  IntrusivePtrBase
 This class exists solely to be declared a friend of IntrusivePtrCounter. More...
class  IntrusivePtrCounter
 Reference counter mixin. More...
class  IntrusivePtr
 Shared pointer. More...
class  IntrusivePtrPolicy
 Default policy class for intrusive pointers. More...
struct  IntrusivePtrDefaultPolicyTag
class  NumericType
 Numeric type template. More...
class  Exception
 Base class for ATS exception. More...

Typedefs

typedef IntrusivePtrPolicy
< IntrusivePtrDefaultPolicyTag
IntrusivePtrDefaultPolicy

Functions

std::ostream & operator<< (std::ostream &os, Errata const &err)
template<typename R >
Rv< R > MakeRv (R const &r, Errata const &s)
 Combine a function result and status in to an Rv.
template<typename T , typename X >
IntrusivePtr< T > dynamic_ptr_cast (IntrusivePtr< X > const &src)
 Pointer dynamic cast.
template<typename T , typename X >
IntrusivePtr< T > ptr_cast (IntrusivePtr< X > const &src)
 Pointer cast.
template<typename T >
bool operator== (IntrusivePtr< T > const &lhs, IntrusivePtr< T > const &rhs)
template<typename T >
bool operator!= (IntrusivePtr< T > const &lhs, IntrusivePtr< T > const &rhs)
template<typename T >
bool operator< (IntrusivePtr< T > const &lhs, IntrusivePtr< T > const &rhs)
template<typename T >
bool operator== (IntrusivePtr< T > const &lhs, int rhs)
template<typename T >
bool operator== (int lhs, IntrusivePtr< T > const &rhs)
template<typename T >
bool operator!= (int lhs, IntrusivePtr< T > const &rhs)
template<typename T >
bool operator!= (IntrusivePtr< T > const &lhs, int rhs)
template<typename T , typename X >
NumericType< T, X > operator+ (T const &lhs, NumericType< T, X > const &rhs)
template<typename T , typename X >
NumericType< T, X > operator- (T const &lhs, NumericType< T, X > const &rhs)

Variables

static Errata::Container NIL_CONTAINER

Detailed Description

Apache Traffic Server commons.


Typedef Documentation

Definition at line 361 of file IntrusivePtr.h.


Function Documentation

template<typename T , typename X >
IntrusivePtr<T> ts::dynamic_ptr_cast ( IntrusivePtr< X > const &  src  ) 

Pointer dynamic cast.

This allows a smart pointer to be cast from one type to another. It must be used when the types do not implicitly convert (generally a downcast).

    class A { ... };
    class B : public A { ... };
    IntrusivePtr<A> really_b(new B);
    InstruivePtr<B> the_b;
    the_b = dynamic_ptr_cast<B>(really_b);
Parameters:
src Source pointer.

Definition at line 270 of file IntrusivePtr.h.

References ts::IntrusivePtr< T >::get(), and T.

template<typename R >
Rv<R> ts::MakeRv ( R const &  r,
Errata const &  s 
)

Combine a function result and status in to an Rv.

This is useful for clients that want to declare the status object and result independently.

Parameters:
r The function result
s The pre-existing status object

Definition at line 781 of file Errata.h.

Referenced by ts::config::Builder::build().

template<typename T >
bool ts::operator!= ( int  lhs,
IntrusivePtr< T > const &  rhs 
)

Definition at line 577 of file IntrusivePtr.h.

template<typename T >
bool ts::operator!= ( IntrusivePtr< T > const &  lhs,
int  rhs 
)

Definition at line 582 of file IntrusivePtr.h.

template<typename T >
bool ts::operator!= ( IntrusivePtr< T > const &  lhs,
IntrusivePtr< T > const &  rhs 
)

Definition at line 555 of file IntrusivePtr.h.

References ts::IntrusivePtr< T >::get().

template<typename T , typename X >
NumericType<T,X> ts::operator+ ( T const &  lhs,
NumericType< T, X > const &  rhs 
)

Definition at line 176 of file NumericType.h.

template<typename T , typename X >
NumericType<T,X> ts::operator- ( T const &  lhs,
NumericType< T, X > const &  rhs 
)

Definition at line 177 of file NumericType.h.

References ts::NumericType< T, X >::raw().

template<typename T >
bool ts::operator< ( IntrusivePtr< T > const &  lhs,
IntrusivePtr< T > const &  rhs 
)

Definition at line 560 of file IntrusivePtr.h.

std::ostream & ts::operator<< ( std::ostream &  os,
Errata const &  err 
)
template<typename T >
bool ts::operator== ( IntrusivePtr< T > const &  lhs,
IntrusivePtr< T > const &  rhs 
)

Definition at line 550 of file IntrusivePtr.h.

References ts::IntrusivePtr< T >::get().

template<typename T >
bool ts::operator== ( IntrusivePtr< T > const &  lhs,
int  rhs 
)

Definition at line 565 of file IntrusivePtr.h.

References assert, and ts::IntrusivePtr< T >::get().

template<typename T >
bool ts::operator== ( int  lhs,
IntrusivePtr< T > const &  rhs 
)

Definition at line 571 of file IntrusivePtr.h.

References assert, and ts::IntrusivePtr< T >::get().

template<typename T , typename X >
IntrusivePtr<T> ts::ptr_cast ( IntrusivePtr< X > const &  src  ) 

Pointer cast.

This allows a smart pointer to be cast from one type to another. It must be used when the types do not implicitly convert (generally a downcast). This uses static_cast and so performs only compile time checks.

    class A { ... };
    class B : public A { ... };
    IntrusivePtr<A> really_b(new B);
    IntrusivePtr<B> the_b;
    the_b = ptr_cast<B>(really_b);
Parameters:
src Source pointer.

Definition at line 293 of file IntrusivePtr.h.

References ts::IntrusivePtr< T >::get(), and T.


Variable Documentation

Definition at line 176 of file Errata.cc.

Referenced by ts::Errata::begin(), ts::Errata::end(), and ts::Errata::registerSink().