1/*
2 * Copyright 2008-2010, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
4 */
5
6
7#include "ProfileResult.h"
8
9
10// #pragma mark - ImageProfileResultContainer
11
12
13ImageProfileResultContainer::~ImageProfileResultContainer()
14{
15}
16
17
18// #pragma mark - ImageProfileResultContainer::Visitor
19
20
21ImageProfileResultContainer::Visitor::~Visitor()
22{
23}
24
25
26// #pragma mark - ImageProfileResult
27
28
29ImageProfileResult::ImageProfileResult(SharedImage* image, image_id id)
30	:
31	fImage(image),
32	fTotalHits(0),
33	fImageID(id)
34{
35	fImage->AcquireReference();
36}
37
38
39ImageProfileResult::~ImageProfileResult()
40{
41	fImage->ReleaseReference();
42}
43
44
45status_t
46ImageProfileResult::Init()
47{
48	return B_OK;
49}
50
51
52// #pragma mark - ProfileResult
53
54
55ProfileResult::ProfileResult()
56	:
57	fEntity(NULL),
58	fInterval(1)
59{
60}
61
62
63ProfileResult::~ProfileResult()
64{
65}
66
67
68status_t
69ProfileResult::Init(ProfiledEntity* entity)
70{
71	fEntity = entity;
72	return B_OK;
73}
74
75
76void
77ProfileResult::SetInterval(bigtime_t interval)
78{
79	fInterval = interval;
80}
81