Panda3D
Loading...
Searching...
No Matches
Classes | Namespaces | Macros | Functions
pointerTo.h File Reference

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University. More...

#include "pandabase.h"
#include "pointerToBase.h"
#include "register_type.h"
#include "pointerTo.I"

Go to the source code of this file.

Classes

class  ConstPointerTo< T >
 A ConstPointerTo is similar to a PointerTo, except it keeps a const pointer to the thing. More...
 
struct  std::owner_less< ConstPointerTo< T > >
 
struct  std::owner_less< PointerTo< T > >
 
class  PointerTo< T >
 This file defines the classes PointerTo and ConstPointerTo (and their abbreviations, PT and CPT). More...
 

Namespaces

namespace  std
 STL namespace.
 

Macros

#define CPT(type)   ConstPointerTo< type >
 
#define PT(type)   PointerTo< type >
 

Functions

template<class T >
TypeHandle _get_type_handle (const ConstPointerTo< T > *)
 
template<class T >
TypeHandle _get_type_handle (const PointerTo< T > *)
 
template<class T >
void swap (ConstPointerTo< T > &one, ConstPointerTo< T > &two) noexcept
 
template<class T >
void swap (PointerTo< T > &one, PointerTo< T > &two) noexcept
 

Detailed Description

PANDA 3D SOFTWARE Copyright (c) Carnegie Mellon University.

All rights reserved.

All use of this software is subject to the terms of the revised BSD license. You should have received a copy of this license along with this source code in a file named "LICENSE."

Author
drose
Date
1998-10-23

Definition in file pointerTo.h.

Macro Definition Documentation

◆ CPT

#define CPT ( type)    ConstPointerTo< type >

Definition at line 242 of file pointerTo.h.

◆ PT

#define PT ( type)    PointerTo< type >

Definition at line 241 of file pointerTo.h.

Function Documentation

◆ _get_type_handle() [1/2]

template<class T >
TypeHandle _get_type_handle ( const ConstPointerTo< T > * )
inline

Definition at line 253 of file pointerTo.h.

◆ _get_type_handle() [2/2]

template<class T >
TypeHandle _get_type_handle ( const PointerTo< T > * )
inline

Definition at line 248 of file pointerTo.h.

◆ swap() [1/2]

template<class T >
void swap ( ConstPointerTo< T > & one,
ConstPointerTo< T > & two )
noexcept

Definition at line 213 of file pointerTo.h.

◆ swap() [2/2]

template<class T >
void swap ( PointerTo< T > & one,
PointerTo< T > & two )
noexcept

Definition at line 208 of file pointerTo.h.