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 13 ImageProfileResultContainer::~ImageProfileResultContainer() 14 { 15 } 16 17 18 // #pragma mark - ImageProfileResultContainer::Visitor 19 20 21 ImageProfileResultContainer::Visitor::~Visitor() 22 { 23 } 24 25 26 // #pragma mark - ImageProfileResult 27 28 29 ImageProfileResult::ImageProfileResult(SharedImage* image, image_id id) 30 : 31 fImage(image), 32 fTotalHits(0), 33 fImageID(id) 34 { 35 fImage->AcquireReference(); 36 } 37 38 39 ImageProfileResult::~ImageProfileResult() 40 { 41 fImage->ReleaseReference(); 42 } 43 44 45 status_t 46 ImageProfileResult::Init() 47 { 48 return B_OK; 49 } 50 51 52 // #pragma mark - ProfileResult 53 54 55 ProfileResult::ProfileResult() 56 : 57 fEntity(NULL), 58 fInterval(1) 59 { 60 } 61 62 63 ProfileResult::~ProfileResult() 64 { 65 } 66 67 68 status_t 69 ProfileResult::Init(ProfiledEntity* entity) 70 { 71 fEntity = entity; 72 return B_OK; 73 } 74 75 76 void 77 ProfileResult::SetInterval(bigtime_t interval) 78 { 79 fInterval = interval; 80 } 81