xdrpp
RFC4506 XDR compiler and message library
Public Types | Public Member Functions | Static Public Member Functions | Friends | List of all members
xdr::pointer< T > Struct Template Reference

Optional data (represented with pointer notation in XDR source). More...

#include <types.h>

Inheritance diagram for xdr::pointer< T >:
Inheritance graph
[legend]
Collaboration diagram for xdr::pointer< T >:
Collaboration graph
[legend]

Public Types

using value_type = T
 

Public Member Functions

 pointer (const pointer &p)
 
 pointer (pointer &&p)=default
 
pointeroperator= (const pointer &up)
 
pointeroperator= (pointer &&)=default
 
uint32_t size () const
 
T * begin ()
 
const T * begin () const
 
T * end ()
 
const T * end () const
 
T & extend_at (uint32_t i)
 
void resize (uint32_t n)
 
T & activate ()
 

Static Public Member Functions

static void check_size (uint32_t n)
 

Friends

bool operator== (const pointer &a, const pointer &b)
 Compare by value, rather than looking at the value of the pointer.
 
bool operator!= (const pointer &a, const pointer &b)
 
bool operator< (const pointer &a, const pointer &b)
 
bool operator> (const pointer &a, const pointer &b)
 
bool operator<= (const pointer &a, const pointer &b)
 
bool operator>= (const pointer &a, const pointer &b)
 

Detailed Description

template<typename T>
struct xdr::pointer< T >

Optional data (represented with pointer notation in XDR source).

Definition at line 536 of file types.h.


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