Panda3D
Main Page
Classes
Files
File List
All
Classes
Functions
Variables
Enumerations
panda
src
express
indirectLess.h
1
// Filename: indirectLess.h
2
// Created by: drose (27Jun01)
3
//
4
////////////////////////////////////////////////////////////////////
5
//
6
// PANDA 3D SOFTWARE
7
// Copyright (c) Carnegie Mellon University. All rights reserved.
8
//
9
// All use of this software is subject to the terms of the revised BSD
10
// license. You should have received a copy of this license along
11
// with this source code in a file named "LICENSE."
12
//
13
////////////////////////////////////////////////////////////////////
14
15
#ifndef INDIRECTLESS_H
16
#define INDIRECTLESS_H
17
18
#include "pandabase.h"
19
20
////////////////////////////////////////////////////////////////////
21
// Class : IndirectLess
22
// Description : An STL function object class, this is intended to be
23
// used on any ordered collection of pointers to classes
24
// that contain an operator <() method. It defines the
25
// order of the pointers via operator <().
26
////////////////////////////////////////////////////////////////////
27
template
<
class
ObjectType>
28
class
IndirectLess
{
29
public
:
30
INLINE
bool
operator ()
(
const
ObjectType *a,
const
ObjectType *b)
const
;
31
};
32
33
#include "indirectLess.I"
34
35
#endif
36
IndirectLess
An STL function object class, this is intended to be used on any ordered collection of pointers to cl...
Definition:
indirectLess.h:28
IndirectLess::operator()
bool operator()(const ObjectType *a, const ObjectType *b) const
Returns true if a sorts before b, false otherwise.
Definition:
indirectLess.I:23
Generated on Mon Feb 1 2016 13:44:24 for Panda3D by
1.8.5