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

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

#include "pandabase.h"
#include "nodePointerToBase.h"
#include "nodePointerTo.I"

Go to the source code of this file.

Classes

class  NodeConstPointerTo< T >
 A NodeConstPointerTo is similar to a NodePointerTo, except it keeps a const pointer to the thing. More...
 
class  NodePointerTo< T >
 This implements the special NodePointerTo template class, which works just like PointerTo except it manages the objects node_ref_count instead of the normal ref_count. More...
 

Macros

#define NCPT(type)   NodeConstPointerTo< type >
 
#define NPT(type)   NodePointerTo< type >
 

Functions

template<class T >
void swap (NodeConstPointerTo< T > &one, NodeConstPointerTo< T > &two) noexcept
 
template<class T >
void swap (NodePointerTo< T > &one, NodePointerTo< 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
2005-05-07

Definition in file nodePointerTo.h.

Macro Definition Documentation

◆ NCPT

#define NCPT ( type)    NodeConstPointerTo< type >

Definition at line 95 of file nodePointerTo.h.

◆ NPT

#define NPT ( type)    NodePointerTo< type >

Definition at line 94 of file nodePointerTo.h.

Function Documentation

◆ swap() [1/2]

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

Definition at line 90 of file nodePointerTo.h.

◆ swap() [2/2]

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

Definition at line 85 of file nodePointerTo.h.