Panda3D
Main Page
Classes
Files
File List
All
Classes
Functions
Variables
Enumerations
panda
src
putil
indirectCompareTo.I
1
// Filename: indirectCompareTo.I
2
// Created by: drose (04Apr00)
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
16
////////////////////////////////////////////////////////////////////
17
// Function: IndirectCompareTo::operator ()
18
// Access: Public
19
// Description: Returns true if a sorts before b, false otherwise.
20
////////////////////////////////////////////////////////////////////
21
template
<
class
ObjectType>
22
INLINE
bool
IndirectCompareTo<ObjectType>::
23
operator ()
(
const
ObjectType *a,
const
ObjectType *b)
const
{
24
return
(a != b && a->compare_to(*b) < 0);
25
}
IndirectCompareTo::operator()
bool operator()(const ObjectType *a, const ObjectType *b) const
Returns true if a sorts before b, false otherwise.
Definition:
indirectCompareTo.I:23
Generated on Mon Feb 1 2016 13:44:38 for Panda3D by
1.8.5